<% @page_title = "Reserve Book" %>
<%= stylesheet_link_tag    "default/common", :media => "all" %>
<%= stylesheet_link_tag    "default/view-book", :media => "all" %>

<div class="title"><span class="title_icon"><%=image_tag("bullet2.gif") %></span>Reserve book</div>
<div class='clear'></div>

<div class="book-detail">
	<h1><%= @book.title %></h1>
	<div class='image'>
		<%= image_tag(@book.image_url) %>
	</div><!-- End .image -->
	<div class='infors'>
		<p class='author'><label><strong>Author:&nbsp;</strong></label><%= @book.author %></p>
		<p class='publisher'><label><strong>Publisher:&nbsp;</strong></label><%= @book.publisher %></p>
		<p class='cate'><label><strong>Category:&nbsp;</strong></label><%= @book.book_category.category_name %></p>
		<p class='info'><%= @book.description %></p>
	</div><!-- End .infors -->
</div>
<div class='clear'></div>

<div class="title title-notice"><span class="title_icon notice"><%=image_tag("bullet2.gif") %></span>Notice</div>
<div class='clear'></div>
<% if flash[:notice] %>
<div class='notice'>
	<div class='content'>
		<%= flash[:notice] %>
	</div>
</div>
<% end %>

<div class='actions' style='margin-bottom: 50px'>
	<%= link_to "Back", :controller => "default/book", :action => "index" %>
</div>
